<template>
  <div>
    <div class="recommend-title">周末去哪</div>
    <ul>
      <li class="item border-bottom" v-for="item in List" :key="item.id">
        <a class="item-a">
          <div class="item-img">
            <img width="100%" :src="item.imgUrl" alt="images">
          </div>
          <div class="item-text-box">
            <p class="item-text">{{item.title}}</p>
            <p class="item-desc">{{item.desc}}</p>
          </div>
        </a>
      </li>
    </ul>
  </div>
</template>
<script>
export default{
  name: 'homeWeekend',
  props: {
    List: Array
  },
  data () {
    return {
    }
  }
}
</script>
<style lang="stylus" scoped>
  @import "~styles/mixins.styl";
  .recommend-title
    background: #eee
    margin-top: .1rem
    line-height: .8rem
    text-indent: .2rem
  .item
    overflow: hidden
    box-sizing: border-box
    padding: 0.15rem 0
    .item-a
      color: #000
      display: block
      width: 100%
      height: 100%
      .item-img
        width: 100%
      .item-text-box
        padding: .1rem .1rem .1rem .25rem
        min-width: 0
        .item-text
          margin-top: .15rem
          height: .44rem
          color: #212121
          font-size: .32rem
          line-height: .44rem
          ellipsis()
        .item-desc
          margin-top: .1rem
          height: .4rem
          line-height: .4rem
          color: #ccc
          font-size: .3rem
          ellipsis()
</style>
